package com.stone.design.patterns.filter;

/**
 * @author 学生类，包含专业和姓名
 * @version V1.0
 * @description:
 * @date 4/29/18 22:34
 * @email redsstone@163.com
 */
public class Student {

    private String name; // 姓名
    private String specializedSubject; // 专业

    public Student(String name, String specializedSubject) {
        this.name = name;
        this.specializedSubject = specializedSubject;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSpecializedSubject() {
        return specializedSubject;
    }

    public void setSpecializedSubject(String specializedSubject) {
        this.specializedSubject = specializedSubject;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", specializedSubject='" + specializedSubject + '\'' +
                '}';
    }
}
